import request from '@/utils/request'

// 查询客户管理详细
export function getCrmCompany() {
  return request({
    url: '/mkt/crm/detail',
    method: 'get'
  })
}

// 修改客户信息
export function updateCrmCompany(data) {
  return request({
    url: '/mkt/crm/edit',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateCrmCompanyFinance(data) {
  return request({
    url: '/mkt/crm/finance/edit',
    method: 'post',
    data: data
  })
}

// 绑定微信小程序
export function bindMiniApp(data) {
  return request({
    url: '/mkt/crm/bind/app',
    method: 'post',
    data: data
  })
}

// 删除客户管理
export function delCrmCompany(id) {
  return request({
    url: '/net/crmCompany/' + id,
    method: 'delete'
  })
}

// 修改密码
export function updatePassword(data) {
  return request({
    url: '/mkt/crm/update/password',
    method: 'post',
    data: data
  })
}
